<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="<?php echo $_REQUEST['charset']?>">
<?php
echo getCommon ();
echo getPlug ( array (
		"belatedPNG" ,
        "lazyload"
) );
getModuleCss ( "common/nav/css/nav.css" );
?>
</head>
<body>
	<div id="nav">
		<div class="container">
			<div class="cate-main">
				全部商品分类
				<div class="cate-main-l-bg png_bg"></div>
				<div class="cate-main-r-bg png_bg"></div>
				<div class="cate-main-t-bg png_bg"></div>
				<div class="cate-main-b-bg png_bg"></div>
				<div class="cate-arrow png_bg"></div>
				<div class="cate-container">
				    <?php
                		foreach ($_REQUEST['productRoots'] as $i => $productRoot) {
                            if($i<10){
                    ?>
                            <div class="cate-item">
        						<div class="b-cate"><?php echo $productRoot['prodTypeName']?></div>
        						<?php 
        						  foreach ($productRoot['child'] as $j => $productOneLChildren) {
                                    if($j<2){
        						?>
        						   <div class="s-cate"><a href="<?php echo '/listproduct?prodTypeId='.$productOneLChildren["prodTypeId"]?>" target="_blank"><?php echo $productOneLChildren['prodTypeName']?></a></div>   
        						<?php 
        						    }
                                  }
                                ?>
        						<div class="s-cate-arrow">&gt;</div>
        						<?php 
        						  if(count($productRoot['child'])>0){
        						?>
        						<div class="item-children popUp_bg png_bg">
        						    <?php 
            						  foreach ($productRoot['child'] as $j => $productOneLChildren) {
            						?>
            						  <a class="pop-cate" href="<?php echo '/listproduct?prodTypeId='.$productOneLChildren["prodTypeId"]?>" target="_blank"><?php echo $productOneLChildren["prodTypeName"]?></a>
            						<?php 
                                      }
                                    ?>        							
        						</div>
        						<?php 
                                  }
                                ?> 
        					</div>
                	<?php
                	        }
                		}
            		?>
				</div>
			</div>
			<a href="/" class="item index <?php if(empty($_REQUEST['currentNavTypeId'])){echo 'current';}?>">首页</a> 
			<?php
				if(!empty($_REQUEST['navList'])){
        			foreach ($_REQUEST['navList'] as $i => $navRow) {
            ?>
			    <a href="<?php echo '/listproduct?navTypeId='.$navRow["id"]?>&type=nav" class="item <?php if(!empty($_REQUEST['currentNavTypeId']) && $_REQUEST['currentNavTypeId'] == $navRow["id"]) {echo 'current';}?>"><?php echo $navRow["name"]?></a> 
			<?php 
			    	}
				}
			?>
			<a class="item " href="javascript:void(0)" id="cqDiscount">重庆打折</a>
		</div>
		<div class="nav-bg png_bg"></div>
	</div>
	<?php getModuleJs("common/nav.js")?>
</body>
</html>
